const fs = require('fs')
module.exports.readFile = filename => JSON.parse(fs.readFileSync('./model/'+filename,'utf-8'))

module.exports.writeFile = (filename,target)=>{
    fs.writeFileSync('./model/'+filename,JSON.stringify(target),'utf-8')
}